home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / latexinfo / C / Makefile.in < prev   
Makefile  |  1991-11-22  |  3KB  |  110 lines

  1. # Makefile for the info sources... -*- text -*-
  2. # Copyright (C) 1990-1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. @VPATH@
  24.  
  25. CC = @CC@
  26. INSTALL = @INSTALL@
  27. INSTALLDATA = @INSTALLDATA@
  28.  
  29. # Things you might add to DEFS:
  30. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  31. # -DUSG            If you have System V/ANSI C string and
  32. #            memory functions and headers.
  33. DEFS = @DEFS@
  34.  
  35. CDEBUG = -O
  36. CFLAGS = $(CDEBUG) $(DEFS)
  37. LDFLAGS = -O
  38.  
  39. LIBS = @LIBS@
  40.  
  41. # Colon-separated list of directories in which to look for info files.
  42. DEFAULT_INFOPATH = .:$(INFODIR):/usr/gnu/info:/usr/local/emacs/info:/usr/local/lib/emacs/info
  43.  
  44. # Command used to print out a text file.  The filename follows this command.
  45. INFO_PRINT_COMMAND = lpr
  46.  
  47. prefix = /usr/local
  48.  
  49. # Where installed binaries go.
  50. BINDIR = @BINDIR@
  51.  
  52. # Where info files go.
  53. INFODIR = @INFODIR@
  54.  
  55. # Where manual pages go, and their extension (not including `.').
  56. mandir = @MANDIR@
  57. manext = 1
  58.  
  59. #### End of system configuration section. ####
  60.  
  61. PATHSPEC = -DDEFAULT_INFOPATH='"$(DEFAULT_INFOPATH)"'
  62. PRINTSPEC = -DINFO_PRINT_COMMAND='"$(INFO_PRINT_COMMAND)"'
  63. INFO_FLAGS = $(PATHSPEC) $(PRINTSPEC)
  64.  
  65. SOURCES = info.c latexindex.c getopt.c getopt1.c
  66. OBJECTS = info.o latexindex.o getopt.o getopt1.o
  67. HEADERS = getopt.h
  68. SUPPORT = Makefile.in configure 
  69.  
  70. THINGS_TO_TAR = $(SOURCES) $(HEADERS) $(SUPPORT)
  71.  
  72. PROGS = info latexindex
  73.  
  74. all: $(PROGS)
  75.  
  76. info:    info.o getopt.o getopt1.o
  77.     $(CC) $(LDFLAGS) -o info info.o getopt.o getopt1.o -ltermcap $(LIBS)
  78.  
  79. info.o: info.c
  80.     $(CC) -c $(CFLAGS) $(INFO_FLAGS) $info.c<
  81.  
  82. latexindex: latexindex.o getopt.o getopt1.o
  83.     $(CC) $(LDFLAGS) -o latexindex latexindex.o getopt.o getopt1.o $(LIBS)
  84.  
  85. latexindex.o: latexindex.c
  86.     $(CC) -c $(CFLAGS) $latexindex.c<
  87.  
  88. info.o latexindex.o getopt1.o: getopt.h
  89.  
  90. install: all
  91.     $(INSTALL) $(PROGS) $(BINDIR)
  92.  
  93. TAGS: $(SOURCES)
  94.     etags $(SOURCES)
  95.  
  96. clean:
  97.     rm -f $(PROGS) $(OBJECTS)
  98.  
  99. distclean: realclean
  100.     -rm -f TAGS Makefile config.status
  101.  
  102. realclean: distclean
  103.  
  104. dist: $(THINGS_TO_TAR)
  105.     rm -rf info-dist
  106.     mkdir info-dist
  107.     (cd info-dist; for i in $(THINGS_TO_TAR); do ln -s ../$$i .; done)
  108.     tar chzf info.tar.Z info-dist
  109.     rm -rf info-dist
  110.